import java.util.Date;
public class WebPage {
    private String url;
    private int PageCount;
    private Date date;

    public WebPage() {

    }

    public WebPage(String url, int pageCount, Date date) {
        this.url = url;
        PageCount = pageCount;
        this.date = new Date();
    }

    public int getPageCount() {
        return PageCount;
    }

    public void setPageCount(int pageCount) {
        this.PageCount = pageCount;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public Date getDate() {
        return date;
    }

    public void setDate(Date date) {
        this.date = date;
    }

    public void lastCount(){
        PageCount++;
        this.date = new Date();
    }

}





